let exec=require("../DBhelper").exec
class Page{
    async login(req,res){
        res.render("login.html")
    }
    async index(req,res){
        let result=await exec("select * from goods",[])

        res.json({code:1,data:result})
    }
    async cart(req,res){
       
        res.render("cart.html")
    }
    async register(req,res){
        res.render("register.html")
    }
    async esc(req,res){
        res.render("esc.html")
    }
}

module.exports=new Page();

